<template>
  <view>
    <view class="yszc" v-if="type == 1">
      <!-- <web-view src="https://youpindou.com/yszc.pdf" bindmessage=""></web-view> -->
      <view class="content" v-html="html"></view>
    </view>
    <view class="yhxy" v-else>
      <view class="content" v-html="html"></view>
      <!-- <web-view src="https://youpindou.com/yhxy.pdf" bindmessage=""></web-view> -->
    </view>
  </view>

</template>
<script>
export default {
  data(){
    return{
      type:1,
      html:''
    }
  },
  onLoad(option){
    if(option){
      this.type = option.type
			this.init(this.type == 1 ? 'yszc' : 'yhxy')
    }
  },
		methods:{
			init(key){
				this.$request.systemSettingsGet({ key }).then(res => {
				  if (res.code == 200 && res.isSuccess) {
				    this.html = res.data.settingValue;
				  }
				});
			}
		}
  
}
</script>
<style>
	.content{
		padding: 0 12px;
	}
</style>